#!/bin/bash
#

df -hT | grep "^/dev" |  while read line; do
	use=$(echo $line | awk '{print $6}' | awk -F% '{print $1}')
	if [ $use -gt 20 ]; then
		name=$(echo $line | awk '{print $7}')
		size=$(echo $line | awk '{print $3}') 
		avail=$(echo $line | awk '{print $5}')
	echo "磁盘名称:${name},总容量:${size},剩余容量:${avail}"
	fi
done
	
  
